package com.rfid.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 仓库物品流动记录对象 rfid_record
 * 
 * @author ruoyi
 * @date 2022-12-29
 */
public class RfidRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 流动类型 0-出库 1-入库 */
    @Excel(name = "流动类型 0-出库 1-入库")
    private Integer type;

    /** 流动物品 */
    @Excel(name = "流动物品")
    private String product;

    /** 操作者 */
    @Excel(name = "操作者")
    private Long updataBy;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updataTime;

    /** 物品去向 */
    @Excel(name = "物品去向")
    private String newAddress;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setProduct(String product) 
    {
        this.product = product;
    }

    public String getProduct() 
    {
        return product;
    }
    public void setUpdataBy(Long updataBy) 
    {
        this.updataBy = updataBy;
    }

    public Long getUpdataBy() 
    {
        return updataBy;
    }
    public void setUpdataTime(Date updataTime) 
    {
        this.updataTime = updataTime;
    }

    public Date getUpdataTime() 
    {
        return updataTime;
    }
    public void setNewAddress(String newAddress) 
    {
        this.newAddress = newAddress;
    }

    public String getNewAddress() 
    {
        return newAddress;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("product", getProduct())
            .append("updataBy", getUpdataBy())
            .append("updataTime", getUpdataTime())
            .append("newAddress", getNewAddress())
            .toString();
    }
}
